package dao.user;


import org.apache.ibatis.session.SqlSession;

import dao.BatisUtil;
import entity.User;

public class UserDaoImpl extends BatisUtil implements UserDao {

	@Override
	public User getUserByid(String uid) {
		try(SqlSession session=super.getSession(true)) {
			return session.getMapper(UserDao.class).getUserByid(uid);
		} catch (Exception e) {
			e.printStackTrace();
		}
		return null;
	}

}
